<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<script type="text/javascript">
	function changexs(bjid) {
		$('#xsid').load("xs_cj?bjid=" + bjid);
	}
	function changecj(str) {
		var bjid = $("#bjid").val();
		if (str == -1) {
			alert("请选择学生");
		} else {
			$('#b1').load("change_cj?bjid=" + bjid + "&xsid=" + str);
		}
	}
</script>
<style type="text/css">
#BBB{
	margin-top: 1%
}
</style>
<div id="BBB">
 <select onchange="changexs(this.value)" id="bjid">
 	<option value="-1">--请选择班级--</option>
	<c:forEach items="${list}" var="x">
		<option value="${x.id}">${x.name}</option>
	</c:forEach>
</select>                                 
&emsp;
<select id="xsid" onchange="changecj(this.value)">
	<option value="-1">--请选择学生--</option>
</select>
</div>
<div id="b1"></div>

